package com.dxb.yomall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dxb.common.utils.PageUtils;
import com.dxb.yomall.product.entity.SkuInfoEntity;
import com.dxb.yomall.product.entity.SpuInfoEntity;
import com.dxb.yomall.product.vo.SkuItemVO;
import com.dxb.yomall.product.vo.Skus;

import java.util.List;
import java.util.Map;

/**
 * sku
 *
 * @author daixinbao
 * @email 1065808217@qq.com
 * @date 2021-01-05 22:26:07
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SpuInfoEntity spuInfoEntity, List<Skus> skus);

    PageUtils queryPageByCondition(Map<String, Object> params);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    /**
     * sku详情页
     * @param skuId
     * @return
     */
    SkuItemVO item(Long skuId) throws Exception;

    /**
     * 创建静态页面
     * @param skuId
     */
    void createHtml(Long skuId);
}

